@echo off
:: Start RAGent-Platform FastAPI service (Windows)

echo Starting RAGent-Platform API server...
echo   API Docs: http://localhost:8000/docs
echo   Endpoint: http://localhost:8000

:: Optional: Add health check for Chroma here

uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

if %errorlevel% neq 0 (
    echo Error: Failed to start FastAPI server. Please check:
    echo   1. Are 'uvicorn' and 'fastapi' installed?
    echo   2. Is port 8000 already in use?
    pause
    exit /b 1
)